package com.swak.consistency.reliablemsg.transport;

import com.swak.consistency.reliablemsg.context.ReliableMsgLog;

/**
 * 可靠消息存储
 * 
 * @author lifeng
 * @date 2021年2月3日 下午2:22:05
 */
public interface ReliableMsgLogTransport {

	/**
	 * 是否支持
	 * 
	 * @param reliableMsg
	 * @return
	 */
	default boolean support(ReliableMsgLog reliableMsg) {
		return true;
	};

	/**
	 * 确认消息
	 * 
	 * @param reliableMsg
	 */
	void send(ReliableMsgLog reliableMsg);
}